package com.dhnsoft.util;

import java.awt.*;

/**
 * @Description
 * @ClassName Constant
 * @Author dhn
 * @date 2020.11.01 19:49
 */
/*
* 游戏常量类
* */
public class Constant {
    /*********游戏窗口相关********/

    public static final String GAME_TITLE="Tank War";
    public static final int FRAME_WIDTH=1000;
    public static final int FRAME_HEIGHT=800;


    /*********游戏菜单相关********/
    public static final int STATE_MENU=0;
    public static final int STATE_HELP=1;
    public static final int STATE_ABOUT=2;
    public static final int STATE_RUN=3;
    public static final int STATE_OVER=4;
    public static final int STATE_WIN = 5;
    public static final int STATE_CROSS = 6;

    public static final String[] MENUS={
            "开始游戏",
            "单挑模式",
            "游戏帮助",
            "退出游戏"
    };
    public static final String OVER_STR0 = "ESC键退出游戏";
    public static final String OVER_STR1 = "ENTER键回到主菜单";


    //字体设置
    public static final Font GAME_FONT=new Font("宋体",Font.BOLD,26);
    public static final Font SMALL_FONT=new Font("宋体",Font.BOLD,12);

    public static final int REPAINT_INTERVAL=30;

    //最大敌人数量
    public static final int MAX_ENEMY_COUNT=10;

    //产生坦克
    public static final int BORN_ENEMY_INTERVAL = 5000;
    //敌人切换状态的间隔
    public static final int ENEMY_AI_INTERVAL = 1000;
    //敌人开火的百分比
    public static final double ENEMY_FIRE_PERCENT=0.01;



}
